"""devops URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path

from devops import hello
from sjgapp import action_myuser,sjgauth,action_user,action_myansible,action_myplaybook,action_mylog

urlpatterns = [

    path('admin/', admin.site.urls),
    path('hello/main/', hello.main),
    path('hello/template/', hello.template),
    path('hello/get/', hello.get),
    path('hello/post/', hello.post),
    path('hello/ajax/', hello.ajax),
    path('hello/ajaxget/', hello.ajaxget),
    path('hello/ajaxpost/', hello.ajaxpost),
    path('', hello.main),

    path('action_myuser/getall/', action_myuser.getall),
    path('action_myuser/getfilter/', action_myuser.getfilter),
    path('action_myuser/delete/', action_myuser.delete),
    path('action_myuser/add/', action_myuser.add),
    path('action_myuser/update/', action_myuser.update),

    path('sjgauth/sjglogin/', sjgauth.sjglogin),
    path('sjgauth/sjglogout/', sjgauth.sjglogout),

    path('action_user/add/', action_user.add),
    path('action_user/update/', action_user.update),
    path('action_user/getall/', action_user.getall),

    path('action_myplaybook/get_by_page/', action_myplaybook.get_by_page),
    path('action_myplaybook/runit_by_id/', action_myplaybook.runit_by_id),

    path('action_myansible/get_by_page/', action_myansible.get_by_page),
    path('action_myansible/runit_by_id/', action_myansible.runit_by_id),

    path('action_mylog/get_by_page/', action_mylog.get_by_page),
    path('action_mylog/getlog_by_id/', action_mylog.getlog_by_id),
]
